/* $Id: IOIComparator.java 67 2010-10-11 10:26:34Z altdotua@gmail.com $ */

package alt.djudge.frontend.server.utils;

import java.util.Comparator;

import alt.djudge.frontend.server.datatypes.scores.ContestUserScoreEntry;

public class IOIComparator implements Comparator<ContestUserScoreEntry>
{

	@Override
	public int compare(ContestUserScoreEntry o1, ContestUserScoreEntry o2)
	{
		int k = o1.getUniqueAcceptedCount() - o2.getUniqueAcceptedCount();
		return k;
	}

}
